theory of python